package com.dkd.common.enums;
public enum IconType {
    EB_ACCOUNT_CATEGORY_DEFAULT("ebAccountCategoryDefault", "系统默认记账类别图标"), EB_REMIND_CATEGORY_DEFAULT("ebRemindCategoryDefault", "系统默认提醒类别图标"), EB_NOTE_CATEGORY_DEFAULT("ebNoteCategoryDefault", "系统默认笔记类别图标");
    private String code;
    private String name;
    IconType(String code, String name) {
        this.code = code;
        this.name = name;
    }
    public String getName() {
        return name;
    }
    public String getCode() {
        return code;
    }
    public static IconType fromCode(String code) {
        for (IconType iconType : IconType.values()) {
            if (iconType.getCode().equals(code)) {
                return iconType;
            }
        }
        return null;
    }
}
